package POJO;

import java.io.Serializable;
import java.util.Objects;

public class Test  implements Serializable{
    private  String name ;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Test test = (Test) o;
        return Objects.equals( name, test.name );
    }

    @Override
    public int hashCode() {

        return Objects.hash( name );
    }
}
